Skip to content

[SWT-0005] Range-based confirmations #691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 25, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 13, 2024

Swift Testing includes an interface for checking that some asynchronous event occurs a given number of times (typically exactly once or never at all.) This proposal enhances that interface to allow arbitrary ranges of event counts so that a test can be written against code that may not always fire said event the exact same number of times.

Read the full proposal here.

Resolves rdar://138499457.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan grynspan added enhancement New feature or request public-api Affects public API api-proposal API proposal PRs (documentation only) labels Sep 13, 2024
@grynspan grynspan added this to the Swift 6.1 milestone Sep 13, 2024
@grynspan grynspan self-assigned this Sep 13, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/range-based-confirmations-with-pitch branch from 0fdb967 to 85b7d80 Compare October 21, 2024 15:58
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/range-based-confirmations-with-pitch branch from 85b7d80 to e5ec034 Compare October 21, 2024 19:02
@grynspan grynspan requested a review from stmontgomery October 23, 2024 19:20
@grynspan
Copy link
Contributor Author

@swift-ci test

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/range-based-confirmations-with-pitch branch from b15460b to 9754230 Compare October 24, 2024 21:02
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

Stuart has approved this PR and will be updating the forum thread shortly. Merging.

Swift Testing includes [an interface](https://swiftpackageindex.com/swiftlang/swift-testing/main/documentation/testing/confirmation(_:expectedcount:isolation:sourcelocation:_:))
for checking that some asynchronous event occurs a given number of times
(typically exactly once or never at all.) This proposal enhances that interface
to allow arbitrary ranges of event counts so that a test can be written against
code that may not always fire said event the exact same number of times.

Read the full proposal [here]().
@grynspan grynspan force-pushed the jgrynspan/range-based-confirmations-with-pitch branch from 9754230 to 5195fae Compare October 25, 2024 19:07
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan changed the title [SWT-NNNN] Range-based confirmations [SWT-0005] Range-based confirmations Oct 25, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test Windows

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 958f82e into main Oct 25, 2024
1 check passed
@grynspan grynspan deleted the jgrynspan/range-based-confirmations-with-pitch branch October 25, 2024 20:53
grynspan added a commit that referenced this pull request Oct 26, 2024
Follow-up to #691. Updates DocC links now that `confirmation()` is overloaded,
specifies a minimum Swift version needed to use it, and adds content to
"Migrating From XCTest" covering the new overload.
grynspan added a commit that referenced this pull request Oct 28, 2024
Follow-up to #691. Updates DocC links now that `confirmation()` is
overloaded, specifies a minimum Swift version needed to use it, and adds
content to "Migrating From XCTest" covering the new overload.

### Checklist:

- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-proposal API proposal PRs (documentation only) enhancement New feature or request public-api Affects public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants